<?php
class MUser extends spModel{
	public $table = 'user';
	public $pk = 'id';
		
	public function getAttributes(){
		return array(
			'name'		=>	'用户名',
			'pwd'		=>	'密码',
			'tel'		=>	'电话',
			'email'		=>	'Email',
			'qq'		=>	'QQ',
			//'type'		=>	'账户类型',
		);
	}

	public function getUnFilteAttributes(){
		return array(
			'name'		=>	'用户名',
			'tel'		=>	'电话',
			'email'		=>	'Email',
			'qq'		=>	'QQ',
			//'status'		=>	'状态',
		);
	}
	
	public function getAttributeFormsets(){
		return array(
			'name'=>array('type'=>'textField', 'htmlOptions'=>array()),
			'pwd'=>array('type'=>'password', 'htmlOptions'=>array()),
			//'type'=>array('type'=>'radio', 'options'=>array('1'=>'代理商','3'=> '客服','2'=>'管理员')),
			//'status'=>array('type'=>'radio', 'options'=>array( '0'=>'未激活', '1'=>'已激活')),
		);
	}
}